<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 项目信息 添加
@author LuoAnDong
@since 2019-06-29 12:19:41
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目编码</label>
	<div class="col-md-9">
		<input class="form-control" id="code" type="text" name="code" placeholder="项目编码">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目名</label>
	<div class="col-md-9">
		<input class="form-control" id="name" type="text" name="name" placeholder="项目名">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目描述</label>
	<div class="col-md-9">
		<input class="form-control" id="description" type="text" name="description" placeholder="项目描述">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目英文名</label>
	<div class="col-md-9">
		<input class="form-control" id="englishName" type="text" name="englishName" placeholder="项目英文名">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">数据库类型:Mysql,Oracle</label>
	<div class="col-md-9">
		<input class="form-control" id="databaseType" type="text" name="databaseType" placeholder="数据库类型:Mysql,Oracle">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目语言:Java,Python,Js</label>
	<div class="col-md-9">
		<input class="form-control" id="language" type="text" name="language" placeholder="项目语言:Java,Python,Js">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目状态：停用[Disenable]，启用[Enable]</label>
	<div class="col-md-9">
		<input class="form-control" id="state" type="text" name="state" placeholder="项目状态：停用[Disenable]，启用[Enable]">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目版权文字信息</label>
	<div class="col-md-9">
		<input class="form-control" id="copyright" type="text" name="copyright" placeholder="项目版权文字信息">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">作者</label>
	<div class="col-md-9">
		<input class="form-control" id="author" type="text" name="author" placeholder="作者">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">联系方式</label>
	<div class="col-md-9">
		<input class="form-control" id="phone" type="text" name="phone" placeholder="联系方式">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目基础包名</label>
	<div class="col-md-9">
		<input class="form-control" id="basePackage" type="text" name="basePackage" placeholder="项目基础包名">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">数据库脚本文件地址</label>
	<div class="col-md-9">
		<input class="form-control" id="sqlFile" type="text" name="sqlFile" placeholder="数据库脚本文件地址">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">项目下载地址</label>
	<div class="col-md-9">
		<input class="form-control" id="downloadUrl" type="text" name="downloadUrl" placeholder="项目下载地址">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">生成次数</label>
	<div class="col-md-9">
		<input class="form-control" id="buildNumber" type="text" name="buildNumber" placeholder="生成次数">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">是否仓库管理</label>
	<div class="col-md-9">
		<input class="form-control" id="isRepository" type="text" name="isRepository" placeholder="是否仓库管理">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">是否已经解析表</label>
	<div class="col-md-9">
		<input class="form-control" id="isParseTable" type="text" name="isParseTable" placeholder="是否已经解析表">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">是否已经解析类</label>
	<div class="col-md-9">
		<input class="form-control" id="isParseClass" type="text" name="isParseClass" placeholder="是否已经解析类">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">创建时间</label>
	<div class="col-md-9">
		<input class="form-control" id="createTime" type="text" name="createTime" placeholder="创建时间">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">账户编码</label>
	<div class="col-md-9">
		<input class="form-control" id="accountCode" type="text" name="accountCode" placeholder="账户编码">
	</div>
</div>
							
								</form>
							</div>

							<div class="card-footer">
								<button class="btn btn-primary" style="float:right" onclick="save()" type="button">保存</button>
							</div>

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<script th:src="@{/asserts/vendors/jquery/js/jquery.min.js}"></script>
	<script th:src="@{/asserts/vendors/jquery.form/jquery.form.min.js}"></script>

	<script th:src="@{/asserts/vendors/layer/layer.js}"></script>
	<script th:src="@{/asserts/js/global.js}"></script>

	<script type="text/javascript">
		// 保存操作
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"compoment/code/project/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
	</script>

</body>
</html>

